from twisted.web import resource, server, static
from twisted.python import components
from twisted.internet import defer

from wbts.utils.web_utils import *
import os
class start(resource.Resource):
    def render_GET(self, request):
        request.setHeader("content-type", "text/html")
        data = request.channel.last_request
        request.write("\r\n".join(data))
        request.write('\r\n'+request.content.getvalue())
        request.finish()
        return server.NOT_DONE_YET
    
    render_POST = render_GET
    render_TRACE = render_GET
        
resource = start()
